s=input()
c=s.split(' ')
a=eval(c[0])
n=eval(c[1])
ans=0
temp=0
for i in range(1,n+1):
    temp=temp*10+a
    ans+=temp
print("s = ",end='')
print(ans)